package parser;

import model.Book;

public class BookParser implements LineHandler {
	
	private Book book;
	
	public BookParser() {
		book = new Book();
	}
	
	public Book getBook() {
		return book;
	}
	
	@Override
	public void handleLine(String line) {
//		if (line.contains("<a  href=\"" + file)) {
//			chapters.add(line.substring(line.indexOf("\"") + 1, line.lastIndexOf("\"")));
//		} else if (line.contains("<link rel=\"image_src\" href=")) {
//			String tmp = line.substring(line.indexOf("href"));
//			coverUrl = tmp.substring(tmp.indexOf("\"") + 1, tmp.lastIndexOf("\""));
//		}
	}
}
